package ro.tm.uvt.lp.raccoon.catchGame.utils;

import ro.tm.uvt.lp.raccoon.catchGame.environment.Environment;

/**
 * Created by user on 1/14/2015.
 */
public class CellUtil {

    public static int getRow(int x){
        return x / Environment.INSTANCE.getTileWidth();
    }

    public static int getColumn(int y){
        return y / Environment.INSTANCE.getTileHeight();
    }

    public static int getX(int column){
        return column * Environment.INSTANCE.getTileWidth();
    }

    public static int getY(int row){
        return row * Environment.INSTANCE.getTileHeight();
    }



}
